package com.test.rabforspringboot.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues ="normalQueue" )
public class ReceviceMsg {


    @RabbitHandler
    public void HandleMsg(String msg){
        System.out.println(System.currentTimeMillis());
        System.out.println(msg);
    }

    //实现用户表的延迟新增（要求延迟10秒钟）

}
